/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #f5f5f5;
  min-width: 300px;
  line-height: 1.5;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #fff;
}

/* 头部导航栏 */
.header {
  padding: 10px;
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.nav-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-tabs {
  display: flex;
}

.tab-btn {
  padding: 8px 16px;
  margin-right: 10px;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  outline: none;
}

.tab-btn.active {
  color: #1890ff;
  background-color: #e6f7ff;
}

.settings-btn {
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  color: #666;
}

.settings-btn:hover {
  color: #1890ff;
}

/* 主要内容区域 */
.main-content {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

/* 面板通用样式 */
.panel {
  display: none;
  height: 100%;
  flex-direction: column;
}

.panel.active {
  display: flex;
}

.input-area, .result-area {
  margin-bottom: 15px;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  resize: none;
  outline: none;
  font-family: inherit;
}

textarea:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

textarea[readonly] {
  background-color: #f5f5f5;
}

/* 操作栏 */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

select {
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  outline: none;
  background-color: #fff;
}

select:focus {
  border-color: #1890ff;
}

.buttons {
  display: flex;
}

button {
  padding: 8px 16px;
  margin-left: 10px;
  border: none;
  border-radius: 4px;
  background-color: #1890ff;
  color: #fff;
  cursor: pointer;
  outline: none;
  font-weight: 500;
}

button:hover {
  background-color: #40a9ff;
}

button:active {
  background-color: #096dd9;
}

/* 设置表单 */
.settings-form {
  padding: 20px 0;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  outline: none;
}

input:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.button-group {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

#cancel-settings {
  background-color: #f5f5f5;
  color: #333;
}

#reset-settings {
  background-color: #ff4d4f;
}

#cancel-settings:hover {
  background-color: #e8e8e8;
}

#reset-settings:hover {
  background-color: #ff7875;
}

/* 消息提示样式 */
.message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
  animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

/* 禁用状态的按钮样式 */
button:disabled {
  background-color: #d9d9d9;
  cursor: not-allowed;
} 